package my.headfirstjava.strategy.v3;

import my.headfirstjava.strategy.v3.behavior.FlayNoWy;
import my.headfirstjava.strategy.v3.behavior.Squeak;

/**
 * 橡胶鸭
 * 特点：不会飞
 */
public class RubberDuck extends Duck  {


	public RubberDuck(){
		flyBehavior =new FlayNoWy();
		quackBehavior = new Squeak();
	}

	public void display() {
		System.out.println("I'm a rubber duckie");
	}


}
